package com.ace.lab.users.service;

import org.junit.Test;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;

public class CompletableFutureClient {

    @Test
    public void test() throws ExecutionException, InterruptedException {
        CompletableFutureServer futureServer = new CompletableFutureServer();
        CompletableFuture<Double> future = futureServer.power("10.00");
        Double result = future.get();
        System.out.println(result);
    }
}
